// MDlgconfig.cpp : implementation file
//

#include "stdafx.h"
#include "MyDX.h"
#include "MDlgconfig.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// MDlgconfig dialog


MDlgconfig::MDlgconfig(CWnd* pParent /*=NULL*/)
	: CDialog(MDlgconfig::IDD, pParent)
{
	//{{AFX_DATA_INIT(MDlgconfig)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void MDlgconfig::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Text(pDX,IDC_EDIT1,m_ShowMax);
	DDV_MinMaxFloat(pDX,m_ShowMax,0.0,100.0);

	DDX_Text(pDX,IDC_EDIT2,m_ShowMin);
	DDX_Text(pDX,IDC_EDIT3,m_Unit);
	//{{AFX_DATA_MAP(MDlgconfig)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(MDlgconfig, CDialog)
	//{{AFX_MSG_MAP(MDlgconfig)
	ON_BN_CLICKED(IDC_BUTTON1, OnMOK)
	ON_BN_CLICKED(IDC_BUTTON2, OnMCancel)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// MDlgconfig message handlers

void MDlgconfig::OnMOK() 
{
	// TODO: Add your control notification handler code here
	CDialog::OnOK();
}

void MDlgconfig::OnMCancel() 
{
	// TODO: Add your control notification handler code here
	CDialog::OnCancel();
}
